<section id="main" class="column">
    <?php
    if($this->result == true){
        print "<h4 class='alert_success'>De Afbeelding is succesvol geupload</h4>";
    }
    if($this->message != NULL){
        print "<h4 class='alert_success'>" . $this->message ."</h4>"; 
    }
    ?>
            <article class="module width_full">
                <header>
                    <h3>Foto uploaden</h3>
                </header>
                <form action="<?=$this->curPageURL();?>"  method="post" enctype="multipart/form-data">
                    <p> 
                        <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size ?>"> 
                    </p>
                    <p> 
                        <label for="file">Bestand om up te loaden: </label> 
                        <input id="uploaded_image" type="file" name="uploaded_image"> 
                    </p>
                    <p> 
                        <label for="submit">Druk om te beginnen met uploaden</label> 
                        <input type="submit" name="upload" id="upload" value="Upload" />
                    </p>
                </form>
            </article>
            <div class="spacer"></div>
            
</section>
<section id="main" class="column">
          
            <article class="module width_full">
                <header>
                    <h3>Geuploade Foto's</h3>
                </header>

                <?php
                //var_dump($this->end);
                    foreach ($this->thumbs as $result) {
                        
                        print "<img src='../" . $result->path . "'alt=". $result->name. "/>";
                        print "<a href='" . $this->baseUrl()."/administrator/imageuploader?file=" . $result->name."' alt=''>Verwijderen</a>";
                    }


                ?>
             
            </article>
            <div class="spacer"></div>
</section>